<template>
    <div class="goods">
        <goodslistitem v-for="(item,index) in goods" :key="index" :goodsitem = "item"></goodslistitem>
    </div>
</template>

<script>
import goodslistitem from './goodslistitem'
export default {
    name:"goodslist",
    components:{
        goodslistitem
    },
    props:{
        goods:{
            type:Array,
            default(){
                return []
            }
        }
    }

}

</script>

<style scoped>
    .goods{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
</style>